﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace XSTDZ.ERP.WebApp.ViewModel
{
    public class OrgViewModel
    {
        public OrgViewModel()
        {
            children = new List<OrgViewModel>(0);
        }
        /// <summary>
        /// 显示结点的文本
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 该结点的ID
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 结点的图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 是否是部门(1:是 0：否）
        /// </summary>
        public string isorg { get;set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool ischecked { get; set; }
        /// <summary>
        /// 是否展开
        /// </summary>
        public bool isexpand { get; set; }
        /// <summary>
        /// 类别名称(辅助显示)
        /// </summary>
        public string typename { get; set; }
        /// <summary>
        /// 子结点
        /// </summary>
        public IList<OrgViewModel> children { get; set; }
    }
}